package com.xx.ems.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * @author xxx
 * @date 2014-2-27
 * @version 1.0
 * 描述: 用户与角色的关联表
 */
@Entity
public class Users_Roles {
	/**
	 * 描述：主键
	 */
	private int id;
	/**
	 * 描述：用户id
	 */
	private int fk_uid;
	/**
	 * 描述：角色id
	 */
	private int fk_rid;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="id",unique=true,nullable=false)
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	@Column(name="fk_uid",nullable=false)
	public int getFk_uid() {
		return fk_uid;
	}
	public void setFk_uid(int fk_uid) {
		this.fk_uid = fk_uid;
	}
	@Column(name="fk_rid",nullable=false)
	public int getFk_rid() {
		return fk_rid;
	}
	public void setFk_rid(int fk_rid) {
		this.fk_rid = fk_rid;
	}
}